Skip to content

Conversation

@klausler
Copy link
Contributor

For more accurate compatibility with other compilers' extensions, accept a bare exponent letter as valid real input to a formatted READ statement only in a fixed-width input field. So it works with (G1.0) editing, but not (G)/(D)/(E)/(F) or list-directed input.

Fixes #151465.

For more accurate compatibility with other compilers' extensions,
accept a bare exponent letter as valid real input to a formatted
READ statement only in a fixed-width input field.  So it works
with (G1.0) editing, but not (G)/(D)/(E)/(F) or list-directed
input.

Fixes llvm#151465.
@llvmbot llvmbot added the flang Flang issues not falling into any other category label Jul 31, 2025
{"(RU,E9.1)", " 1.0E-325", 0x1, 0},
{"(E9.1)", "-1.0E-325", 0x8000000000000000, 0},
{"(RD,E9.1)", "-1.0E-325", 0x8000000000000001, 0},
{"(F7.0))", "+NaN(q)", 0x7ff8000000000000, 0},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Catch!

@klausler klausler merged commit effa35d into llvm:main Aug 5, 2025
12 checks passed
@klausler klausler deleted the bug151465 branch August 5, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang Flang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Flang] reads d* prefixed strings as floating-point values

4 participants